/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.BasProject.DomainModels
{
    [Entity(TableCnName = "物品管理",TableName = "Bas_Material",DBServer = "ServiceDbContext")]
    public partial class Bas_Material:ServiceEntity
    {
        /// <summary>
       ///物料分类
       /// </summary>
       [Display(Name ="物料分类")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int MaterialCategory { get; set; }

       /// <summary>
       ///物料编号
       /// </summary>
       [Display(Name ="物料编号")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string MaterialCode { get; set; }

       /// <summary>
       ///物料名称
       /// </summary>
       [Display(Name ="物料名称")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string MaterialName { get; set; }

       /// <summary>
       ///变体值
       /// </summary>
       [Display(Name ="变体值")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Variant { get; set; }

       /// <summary>
       ///物料规格
       /// </summary>
       [Display(Name ="物料规格")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string MaterialSpec { get; set; }

       /// <summary>
       ///物料类型
       /// </summary>
       [Display(Name ="物料类型")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string MaterialType { get; set; }

       /// <summary>
       ///机种ID
       /// </summary>
       [Display(Name ="机种ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? ModelId { get; set; }

       /// <summary>
       ///单位
       /// </summary>
       [Display(Name ="单位")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string UnitName { get; set; }

       /// <summary>
       ///安全库存
       /// </summary>
       [Display(Name ="安全库存")]
       [DisplayFormat(DataFormatString="13,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? SafetyQty { get; set; }

       /// <summary>
       ///预警库存
       /// </summary>
       [Display(Name ="预警库存")]
       [DisplayFormat(DataFormatString="13,3")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? WarningQty { get; set; }

       /// <summary>
       ///库存有效天数
       /// </summary>
       [Display(Name ="库存有效天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ValidDays { get; set; }

       /// <summary>
       ///是否开启第二单位
       /// </summary>
       [Display(Name ="是否开启第二单位")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? EnableDoubleUnit { get; set; }

       /// <summary>
       ///第二单位转化率
       /// </summary>
       [Display(Name ="第二单位转化率")]
       [DisplayFormat(DataFormatString="13,3")]
       [Column(TypeName="decimal")]
       public decimal? DoubleUnitRatio { get; set; }

       /// <summary>
       ///第二单位
       /// </summary>
       [Display(Name ="第二单位")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string DoubleUnitName { get; set; }

       /// <summary>
       ///是否IQC检验
       /// </summary>
       [Display(Name ="是否IQC检验")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IqcFlag { get; set; }

       /// <summary>
       ///是否含ce
       /// </summary>
       [Display(Name ="是否含ce")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IsCe { get; set; }

       /// <summary>
       ///ID
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long MaterialId { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///是否启用
       /// </summary>
       [Display(Name ="是否启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Enabled { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(2000)]
       [Column(TypeName="nvarchar(2000)")]
       public string Remarks { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Property1")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Property1 { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="TobId")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string TobId { get; set; }

       /// <summary>
       ///AMes字段tracking  追溯： lot：批次，serial:序列号，none：不追溯
       /// </summary>
       [Display(Name ="AMes字段tracking  追溯： lot：批次，serial:序列号，none：不追溯")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       public string Tracking { get; set; }

       /// <summary>
       ///是否需要质检
       /// </summary>
       [Display(Name ="是否需要质检")]
       [Column(TypeName="int")]
       public int? QualityControlPointQty { get; set; }

       
    }
}